package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.AgentAccount;
import com.weixing.mall.provider.model.domain.AgentAccountBill;
import com.weixing.mall.provider.model.domain.AgentWithdraw;
import com.weixing.mall.provider.model.query.AgentAccountQuery;
import com.weixing.mall.provider.model.query.AgentBonusQuery;
import com.weixing.mall.provider.model.vo.AgentAccountVo;
import com.weixing.mall.provider.support.excel.AgentWithdrawExcelDownData;

import java.util.List;

/**
 * <p>
 * 代理商模块-代理商账户表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface IAgentAccountService extends IService<AgentAccount> {
    AgentAccountVo selectByAgentId(long agentId);

    AgentAccount findByAgentId(Long agentId);

    /**
     * 导入提现金额Excal对代理商账户提现可用金额平账
     */
    void updateAvaAmountByAgentId(List<AgentAccount> data, List<AgentAccountBill> aabList,List<AgentWithdraw> aw);

    /*
    * 系体管理员查询
    *
    *
    *  */

    IPage<AgentAccountVo> findByAdmin(Page page, AgentAccountQuery agentAccountQuery);
}
